//
//  NSString+Calculating.h
//  homework
//
//  Created by 潘 祥 on 14-4-17.
//  Copyright (c) 2014年 Baidu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface NSString (Calculating)
- (CGSize)stringSizeWithFont:(UIFont *)font
              constrainWidth:(NSInteger)width;

- (CGSize)stringSizeWithFont:(UIFont *)font
              constrainWidth:(NSInteger)width
             attributeString:(NSDictionary *)attribute;

/**
 计算字符长度

 */
- (int)returnCharLength;
@end
